package com.shsxt.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class BOrder {
	private String detailAddress;
	private String type;
	private String phoneNumber;
	private String orderNumber;
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private String orderTime;
	private String timeSlot;
	private String servicePersonal;
	private String address;
	private String orderState;
	private String score;
	private String evaluation;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private String evaluationTime;
	private String realPhoneNumber;
	private String redeemCode;
	private String linkMan;
	private String demand;

	public String getRedeemCode() {
		return redeemCode;
	}
	public void setRedeemCode(String redeemCode) {
		this.redeemCode = redeemCode;
	}
	public String getLinkMan() {
		return linkMan;
	}
	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}
	public String getDemand() {
		return demand;
	}
	public void setDemand(String demand) {
		this.demand = demand;
	}
	
	@Override
	public String toString() {
		return "BOrder [detailAddress=" + detailAddress + ", type=" + type + ", phoneNumber=" + phoneNumber
				+ ", orderNumber=" + orderNumber + ", orderTime=" + orderTime + ", timeSlot=" + timeSlot
				+ ", servicePersonal=" + servicePersonal + ", address=" + address + ", orderState=" + orderState
				+ ", score=" + score + ", evaluation=" + evaluation + ", evaluationTime=" + evaluationTime + "]";
	}
	public BOrder() {
		super();
		// TODO Auto-generated constructor stub
	}
	public BOrder(String detailAddress, String type, String phoneNumber, String orderNumber, String orderTime,
			String timeSlot, String servicePersonal, String address, String orderState, String score, String evaluation,
			String evaluationTime) {
		super();
		this.detailAddress = detailAddress;
		this.type = type;
		this.phoneNumber = phoneNumber;
		this.orderNumber = orderNumber;
		this.orderTime = orderTime;
		this.timeSlot = timeSlot;
		this.servicePersonal = servicePersonal;
		this.address = address;
		this.orderState = orderState;
		this.score = score;
		this.evaluation = evaluation;
		this.evaluationTime = evaluationTime;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	
	public String getRealPhoneNumber() {
		return realPhoneNumber;
	}
	public void setRealPhoneNumber(String realPhoneNumber) {
		this.realPhoneNumber = realPhoneNumber;
	}
	public BOrder(String detailAddress, String type, String phoneNumber, String orderNumber, String orderTime,
			String timeSlot, String servicePersonal, String address, String orderState, String score, String evaluation,
			String evaluationTime, String realPhoneNumber) {
		super();
		this.detailAddress = detailAddress;
		this.type = type;
		this.phoneNumber = phoneNumber;
		this.orderNumber = orderNumber;
		this.orderTime = orderTime;
		this.timeSlot = timeSlot;
		this.servicePersonal = servicePersonal;
		this.address = address;
		this.orderState = orderState;
		this.score = score;
		this.evaluation = evaluation;
		this.evaluationTime = evaluationTime;
		this.realPhoneNumber = realPhoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date xxx) {
		SimpleDateFormat myFmt=new SimpleDateFormat("yyyy-MM-dd");        
	    String orderTime= myFmt.format(xxx);
	    this.orderTime = orderTime;
	}
	public String getTimeSlot() {
		return timeSlot;
	}
	public void setTimeSlot(String timeSlot) {
		this.timeSlot = timeSlot;
	}
	public String getServicePersonal() {
		return servicePersonal;
	}
	public void setServicePersonal(String servicePersonal) {
		this.servicePersonal = servicePersonal;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getOrderState() {
		return orderState;
	}
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}
	public String getScore() {
		return score;
	}
	public void setScore(String score) {
		this.score = score;
	}
	public String getEvaluation() {
		return evaluation;
	}
	public void setEvaluation(String evaluation) {
		this.evaluation = evaluation;
	}
	public String getEvaluationTime() {
		return evaluationTime;
	}
	public void setEvaluationTime(Date xxx) {
		SimpleDateFormat myFmt=new SimpleDateFormat("yyyy-MM-dd");        
	    String evaluationTime= myFmt.format(xxx);
		this.evaluationTime = evaluationTime;
	}
	
}
